package com.googlecode.vmock;

/**
 * Interface representing a code stub which will be executed when a mocked call occurs.
 * 
 * @author marcin.jagus
 * @param <T> Type of a return value of the stub
 */
public interface Answer<T> {

    /**
     * Code to execute when a mocked call occurs.
     * 
     * @param params Parameters of the mocked call
     * @return A return value
     */
    T answer(Object... params);
}
